package com.smh;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author shiminghui
 * @date 2025/5/6 18:33
 * @description: TODO
 */
@SpringBootApplication
public class TestApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(TestApplication.class, args);

        Object bean = context.getBean("bean1");
        System.out.println(bean);

        context.close();
    }
}
